package com.chris.libs.example.pages.ext.base;

import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import javax.inject.Inject;
import javax.inject.Scope;
import javax.inject.Singleton;

/**
 * @author Chris chan
 * Create on： 2025/2/1 21:12
 * Use for: 数据中心
 * Explain:
 */
public class BaseExampleViewModel extends ViewModel {
    // 示例数据
    private MutableLiveData<String> info;

    // 构造方法
//    @Inject
    public BaseExampleViewModel() {
        info = new MutableLiveData<>();
        setInfo("基本框架测试");
    }

    // 示例数据读取
    public MutableLiveData<String> getInfo() {
        return info;
    }

    // 示例数据赋值
    public void setInfo(String info) {
        this.info.setValue(info);
    }
}
